package com.sy.simpleegg.constant

object Constant {
    const val PORT_COIN ="ttyS1"
    const val PORT_BANKNOTE = "ttyS3"
    const val PORT_BACKSCAN = "ttyS4"
    const val PWD_DEFAULT = "88888888"
    const val PWD_MAX_LENGTH = 8
    const val PWD_ERR_INTERVAL = 60
    const val PWD_ERR_MAX_COUNT = 5
    const val PWD_ERR_LIMIT_TIME = 30

    const val KEYBOARD_CLICK_COUNT = 5

    const val CLICK_INTERVAL = 1000L

    const val RECEIVED_INTERVAL = 1000L

    const val BACK_HOME_TIME = 60

    const val CHANNEL_COUNT_DEFAULT = 100

    const val STOCK_MAX_DEFAULT = 500

    const val STANDBY_AD_TIME = 60

    const val DEF_ROW = 10
    const val DEF_COLUMN = 10

    const val VERSION_PREFIX = "AEGH"
    const val VERSION_TYPE = 4

    var BOX_HEARTBEAT = true
    var COINCONTROL_HEARTBEAT = false
    var COINCONTROL_STATE_CODE = 0
    var COINCONTROL_ERR_CODE = 0

    var NETWORK_TYPE = ""
    var NETWORK_SIGNAL = 0

    /**
     * 纸钞面额 单位：分
     */
    var MONEY_DENOMINATION = longArrayOf(100, 500, 1000, 2000, 5000, 10000)

    /**
     * 显示指示器
     */
    const val SETTING_SHOW_INDICATOR = "show_indicator"
    /**
     * 滑动banner
     */
    const val SETTING_SCORLL_BANNER = "scroll_banner"
    /**
     * 触摸视频控件，如：拖动进度
     */
    const val SETTING_TOUCH_WIDGET = "touch_widget"
    /**
     * 图片显示时间
     */
    const val SETTING_IMAGE_SHOW_TIME = "image_show_time"
    /**
     * 视频播放前置时间，毫秒
     */
    const val SETTING_VIDEO_LOAD_WAIT_TIME = "video_load_wait_time"
    /**
     * 商品自动滚动
     */
    const val SETTING_GOOD_SMOOTH = "good_smooth"
    /**
     * 商品自动滚动
     */
    const val SETTING_SHOW_SHOPCART = "show_shopcart"

    /**
     * 默认页面倒计时
     */
    const val SETTING_DEFAULT_TIMEOUT = "default_timeout"
    /**
     * 支付倒计时
     */
    const val SETTING_PAY_TIMEOUT = "pay_timeout"
    /**
     * 支付结果显示倒计时
     */
    const val SETTING_PAY_RESULT_TIMEOUT = "pay_result_timeout"
    /**
     * 取货倒计时
     */
    const val SETTING_TAKE_TIMEOUT = "take_timeout"
    /**
     * 本地后台密码
     */
    const val SETTING_PWD = "password"
    /**
     * 密码输入错误间隔
     */
    const val SETTING_PWD_INTERVAL = "password_err_interval"
    /**
     * 密码输入错误信息 格式：次数,时间（时间戳）
     */
    const val SETTING_PWD_ERR_COUNT = "password_err_count"
    /**
     * 返回首页倒计时
     */
    const val SETTING_BACK_HOME_TIME = "back_home_time"
    /**
     * 设备编号
     */
    const val SETTING_DEVICE_NUMBER = "device_number"
    /**
     * 货道数量
     */
    const val SETTING_CHANNEL_COUNT = "channel_count"
    /**
     * 库存上限
     */
    const val SETTING_STOCK_MAX = "stock_max"
    /**
     * 待机广告开启
     */
    const val SETTING_STANDBY_AD = "standby_ad"
    /**
     * 待机广告时间
     */
    const val SETTING_STANDBY_AD_TIME = "standby_ad_time"
    /**
     * 主推广告
     */
    const val SETTING_PUSH_AD = "push_ad"
    /**
     * logo显示
     */
    const val SETTING_LOGO_SHOW = "logo_show"
    /**
     * 货道号显示
     */
    const val SETTING_CHANNEL_SHOW = "channel_show"
    /**
     * 待货道旋转
     */
    const val SETTING_CHANNEL_ROTATE = "channel_rotate"
    /**
     * 购物车显示
     */
    const val SETTING_SHOPPING_CART = "shopping_cart"
    /**
     * 主页货道号修正
     */
    const val SETTING_CHANNEL_FIX = "channel_fix"
    /**
     * 微动电机
     */
    const val SETTING_MICRO_MOTOR = "micro_motor"
    /**
     * 对射光眼
     */
    const val SETTING_LIGHT_EYES = "light_eyes"
    /**
     * 制冷
     */
    const val SETTING_REFRIGERATION = "refrigeration"
    /**
     * 光眼反馈
     */
    const val SETTING_EYES_RESPONSE = "eyes_response"
    /**
     * 设置制冷温度
     */
    const val SETTING_SETTING_TEMPERATURE = "setting_temperature"
    /**
     * wifi名称
     */
    const val SETTING_WIFI_SSID = "setting_wifi_ssid"
    /**
     * wifi密码
     */
    const val SETTING_WIFI_PWD = "setting_wifi_pwd"
    /**
     * 语言
     */
    const val SETTING_LANGUAGE = "setting_language"
    /**
     * 语言地区
     */
    const val SETTING_LANGUAGE_AREA = "setting_language_area"
    /**
     * 接入第三方平台
     */
    const val SETTING_OTHER_PLATFORM = "setting_other_platform"
    /**
     * 自动补币
     */
    const val SETTING_AUTO_COINS = "setting_auto_coins"
    /**
     * 默认mqtt是否开启
     */
    const val SETTING_DEFMQ_OPEN = "setting_defmq_open"
    /**
     * lyysdk是否开启
     */
    const val SETTING_LYYSDK_OPEN = "setting_lyysdk_open"
    /**
     * lyybox是否开启
     */
    const val SETTING_LYYBOX_OPEN = "setting_lyybox_open"
    /**
     * lyybox二维码
     */
    const val SETTING_LYYBOX_QR_CODE = "setting_lyybox_qr_code"
    /**
     * 客服电话
     */
    const val SETTING_CONTACT = "setting_contact"
    /**
     * 支付方式
     */
    const val SETTING_PAY_TYPE = "setting_pay_type"
    /**
     * 语言配置
     */
    const val SETTING_LANGUAGE_CONFIG = "setting_language_config"
    /**
     * 国家，地区
     */
    const val SETTING_COUNTRY = "setting_country"
    /**
     * 纸钞通道配置
     */
    const val SETTING_CASH_CHANNEL_CONFIG = "setting_cash_channel_config"
    /**
     * 现金购币按钮显示或隐藏
     */
    const val SETTING_CASH_SHOW = "setting_cash_show"
    /**
     * 美团核销按钮显示或隐藏
     */
    const val SETTING_MEITUAN_SHOW = "setting_meituan_show"
    /**
     * 抖音核销按钮显示或隐藏
     */
    const val SETTING_TIKTOK_SHOW = "setting_tiktok_show"
    /**
     * 存币按钮显示或隐藏
     */
    const val SETTING_SAVE_SHOW = "setting_save_show"
    /**
     * 优惠券核销按钮显示或隐藏
     */
    const val SETTING_WRITE_OFF_SHOW = "setting_write_off_show"
    /**
     * 提币按钮显示或隐藏
     */
    const val SETTING_WITHDRAWAL_SHOW = "setting_withdrawal_show"
    /**
     * 基础配置
     */
    const val SETTING_BASIC_CONFIG = "setting_basic_config"
    /**
     * 现金配置
     */
    const val SETTING_CASH_CONFIG = "setting_cash_config"
    /**
     * 马达配置
     */
    const val SETTING_MOTOR_CONFIG = "setting_motor_config"
    /**
     * 首页说明内容
     */
    const val SETTING_HOME_INSTRUCTIONS = "setting_home_instructions"
    /**
     * 登录二维码
     */
    const val SETTING_LOGIN_CODE = "setting_login_code"
    /**
     * 提币二维码
     */
    const val SETTING_WITHDRAWAL_CODE = "setting_withdrawal_code"
    /**
     * 消费二维码
     */
    const val SETTING_CONSUME_CODE = "setting_consume_code"
    /**
     * KKB商户识别码
     */
    const val SETTING_KKB_IDENTITY = "setting_kkb_identity"
    /**
     * 开启多平台
     */
    const val SETTING_OPEN_MULT_PLATFORM = "setting_open_mult_platform"
    /**
     * 开启多平台的主设备编号
     */
    const val SETTING_MAIN_DEVICE_NUMBER = "setting_main_device_number"
    /**
     * 订单自动补币
     */
    const val SETTING_ORDER_SUPPLEMENT = "setting_order_supplement"
    /**
     * 设备状态
     */
    const val SETTING_DEVICE_STATUS = "setting_device_status"

    /***************************************************************兑币机控制板 */
    const val COIN_CONTROL_LYY = 1
    const val COIN_CONTROL_DEFAULT = 0
    var COIN_CONTROL = COIN_CONTROL_DEFAULT

    /***************************************************************接入平台 */
    const val PLATFORM_DEFAULT = 0
    const val PLATFORM_LYY_SDK = 1
    const val PLATFORM_LYY_BOX = 2

    var platform = PLATFORM_DEFAULT

    /**************************************************************马达出币模式 */
    const val MOTOR_TYPE_SINGLE_1 = 0 //马达1

    const val MOTOR_TYPE_SINGLE_2 = 1 //马达2

    const val MOTOR_TYPE_ALTERNATELY = 2 //双马达交替

    const val MOTOR_TYPE_ASYNCHRONIZATION = 3 //双马达同时（异步）


    /**
     * 首页
     */
    const val PAGE_HOME = 0

    /**
     * 会员提币
     */
    const val PAGE_WITHDRAWAL = 1

    /**
     * 套餐选择
     */
    const val PAGE_PACKAGE = 2

    /**
     * 二维码支付
     */
    const val PAGE_MOBILE_PAY = 3

    /**
     * 现金支付
     */
    const val PAGE_CASH_PAY = 4

    /**
     * 现金支付完成-出币
     */
    const val PAGE_CASH_FINISH = 5

    /**
     * 会员查询
     */
    const val PAGE_SEARCH = 6

    /**
     * 优惠券
     */
    const val PAGE_COUPON = 7

    /**
     * 美团优惠券
     */
    const val PAGE_COUPON_MEITUAN = 8

    /**
     * 抖音优惠券
     */
    const val PAGE_COUPON_TITOK = 9

    /**
     * 会员存币
     */
    const val PAGE_MEMBER_SAVE = 10

    /**
     * 1-当前显示页面index
     */
    val showIndex = intArrayOf(1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)

    const val REBOOT_TIME = "02:00"
}